/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="CONSELHOSPROFISSIONAIS")
public class ConselhosProfissionaisProteu implements Serializable{

    @Id
    @Column(name="CRP_ST_CODIGO")
    private String crpStCodigo;
    @Column(name="CRP_ST_DESCRICAO")
    private String crpStDescricao;

    public String getCrpStCodigo() {
        return crpStCodigo;
    }

    public void setCrpStCodigo(String crpStCodigo) {
        this.crpStCodigo = crpStCodigo;
    }

    public String getCrpStDescricao() {
        return crpStDescricao;
    }

    public void setCrpStDescricao(String crpStDescricao) {
        this.crpStDescricao = crpStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ConselhosProfissionaisProteu other = (ConselhosProfissionaisProteu) obj;
        if ((this.crpStCodigo == null) ? (other.crpStCodigo != null) : !this.crpStCodigo.equals(other.crpStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + (this.crpStCodigo != null ? this.crpStCodigo.hashCode() : 0);
        return hash;
    }


}
